package com.atguigu.gmall.jvm;

import java.util.ArrayList;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/5 14:16
 */
public class OOM {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        while (true){
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            arrayList.add(122);
        }
    }
}
